Mislabeled a class definition in template file