fix bugs in TasksControllers