Fixed Jinja bug