fix task delegate