Fixes to gradebook formatting