fix task structure