fixed exception in getLastWalletChange()