fix rpc exception