fix space parsing issue