Removed autoclose cause it fucks with jinja templates