fixed issue with jinja2 edit template