fixing a jinja template error