fixing template name collision issue