Fixed a task controller error