Fix bug with extra spaces between lines