fix Ungrade to work properly (was getting string 'None' for grade)