Fixed an issue in grading lecture attendance