fix space checker