flight eof bug fixed