fix newline print error