bugfix for TemplateSyntaxError