diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp
index e1e4c520e9..620665719a 100644
--- a/src/qt/transactiondesc.cpp
+++ b/src/qt/transactiondesc.cpp
@@ -231,7 +231,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
CAmount nTxFee = nDebit - wtx.tx->GetValueOut();
if (wtx.tx->IsLelantusJoinSplit() && wtx.tx->vin.size() > 0) {
- nTxFee = lelantus::ParseLelantusJoinSplit(wtx.tx->vin[0])->getFee();
+ nTxFee = lelantus::ParseLelantusJoinSplit(*wtx.tx)->getFee();
}
if (nTxFee > 0)
strHTML += "" + tr("Transaction fee") + ": " + BitcoinUnits::formatHtmlWithUnit(unit, -nTxFee) + "
";