Fixed eof_check error.