Fix the problem of update deadline of a task