fix wallet rpc