Fix end of file error