fix jinja2-templating filter