eof error fixed