Fixes grade duplicates