task_controller bug fix