bugfix in template