variable consistency fix