restore empty line at end of file