fix grade build errors