fixed bug where spaces were missing