Fix bug in SaveAutoGrades