Fixed bug causing new Template not to be created;