fix uppercase constants in preferences