fix type for variable consistency