Work around Jinja2 bug