Fixed deleting task.