GradeDialog bug fix