fix bug in lexer atn simulator