fixed end of files