fixes for jinja2 benchmark