* fix(name): fixed namespace creation issue when a registry attached. * fix(name): moved copy object to upper level of the function
* fix(name): fixed namespace creation issue when a registry attached. * fix(name): moved copy object to upper level of the function