Bugfix for _template