fixed bug in grades.php