fixed a bug

EOF = -1