Fix bug TemplateSyntaxError at /, ref #293
https://github.com/opps/opps/issues/293