fix task deletion