fix task creation