Fix secure issue and werkzeug issue with frozen code.