bugfix in template file