Fixing task_results bug