fix PaymentModel and WalletEngine.getHistory