fixed: creating a template was adding and not creating.