minor bugfix in template