Fix scope for walletData.