Fix on deleting task.