This could be easily overcome by changing the word “but” to “and.” “We’re really proud of you, Johnnie, for raising your grades this term, and if you continue the same conscientious efforts next term, your algebra grade can be up with all the others.”