RemoteObjectRef fix

Fixed issued with setRemoteObjectRef in RemoteObjectRef