Fixed eof endings