Fix task count