fixed some jinja issues