Fix end of files