Fix lexer state