Fixed grouping grade bug.
If only enter the first and third grade,then using grouping will got error.