fix error on grading page where tasks are separated by task_type