Fix issue #19 Moved event before Lexer instance