fixed last grade cell issue