fixes #1646 - enable cloning of templates