fixed grades_table average display bug