Fixed Jinja environment bug.