corrects case on var for true/false