diff --git a/modules/statistics/templates/statistics.twig b/modules/statistics/templates/statistics.twig
index 7fb375dfacc379395f5f7533edab7a618b848412..202a964ec9c44d9066d49b3e0862d0ab555a14a3 100644
--- a/modules/statistics/templates/statistics.twig
+++ b/modules/statistics/templates/statistics.twig
@@ -186,9 +186,9 @@
                     <th>Time</th>
                     <th>Total</th>
                     {% for key, value in topdelimiters %}
-                    {% set keyName = key %}
-                    {% if delimiterPresentation[key] is defined %}
-                        {% set keyName = delimiterPresentation[key] %}
+                    {% set keyName = value %}
+                    {% if delimiterPresentation[value] is defined %}
+                        {% set keyName = delimiterPresentation[value] %}
                     {% endif %}
                     <th>{{ keyName }}</th>
                     {% endfor %}