fixed bug in grade-a-page