Fix task execution problem.