fix task removal