fix logic to not break when running

Authored by jriddell on Aug 20 2019, 12:07 PM.