fix references within Namespace object.