fix new line on eof