Bugfix in template