Fix bug in grading view