duplicate error in addRegistryObjects fix