fixed grading bug