Fix error with workflow progression logic