fix grade model bug