Don't throw an error when lexer is not available
Fixed some stuff for production env