Fixed problems having to do with grading periods