fix register_object for all corba objects