Fix newline duplication