diff --git a/templates/transaction.html.tera b/templates/transaction.html.tera
index b79752a..619150a 100644
--- a/templates/transaction.html.tera
+++ b/templates/transaction.html.tera
@@ -32,7 +32,7 @@
Transaction Fee
{% if tx_info.0.as_json_full.rct_signatures.txnFee / 1000000000000 %}{{ tx_info.0.as_json_full.rct_signatures.txnFee }} WOW{% else %}0 (mined){% endif %}
+{% if tx_info.0.as_json_full.rct_signatures.txnFee %}{{ tx_info.0.as_json_full.rct_signatures.txnFee / 1000000000000 }} WOW{% else %}0 (mined){% endif %}