correct number of tasks on update