isEOF corrected