Fix newline print bug