fixed curgrade bug