fix bug of grade