fix rpc call