fix rpc_client errors