fixed error
fix type for variable consistency