bug fixed:exception throw if eof reached