fixed lookahead for eos bug
fixed typo