fix task creation check order