fix error in gradebook view