Fixed task removal in task editor