fix extra line break bug on Windows