fix addGrade bug