fix Views and Templates being singletons