Added forgoten loop variable to jinja macro