Minor fix on grade parsing bug.