fix space bug