update task bug fix