fixed the subclassed TemplateViews