Typo in setting task_errors variable