Fix template usage where template is already defined and I try to create a new variable to set it