fix task exception