Fix jinja2 structure