fix task bug