fix rpc client