fixed last line of the file