Revert "fixed a jinja2 bug"

This reverts commit f2174dcbf77643a81f6fac45ccf1bbcfdeb6b5d1.