diff --git a/files/templates/comments.html b/files/templates/comments.html
index 44772aa1c..fc0601bd2 100644
--- a/files/templates/comments.html
+++ b/files/templates/comments.html
@@ -23,6 +23,7 @@
}
+{% include "expanded_image_modal.html" %}
{% macro single_comment(c, level=1) %}
@@ -816,8 +817,6 @@ window.addEventListener('DOMContentLoaded', function() {
});
-{% include "expanded_image_modal.html" %}
-
+{% include "expanded_image_modal.html" %}
+
{% if p.award_count("train") %}