Fixed race condition when workFlow is run.