fixed NPE bug in simpleGrade