fix student_grades
(cherry picked from commit ac755a34cc8b000e3c2215b9b0bbee59632ce312)