Fixed worker stop condition.