Fixes updating grades entering duplicate records