fixed bug where grade would be null if only one weight given