Fixed Jinja2 issues.