Fixed bug with updating the task.