Fix end of file