bug fixed:1.cannot handle space.2.error on eof