Fixed bug in template for new descendant instances