Correctly change check with upper to lower