fix space type