Fix bug in number to letter grade conversion