fix lexer console error