fix task callback bug