diff --git a/files/templates/comments.html b/files/templates/comments.html
index b1b3f687b5..a38412a81b 100644
--- a/files/templates/comments.html
+++ b/files/templates/comments.html
@@ -199,7 +199,7 @@
{% if c.over_18 %}{% endif %}
{% if v and v.admin_level > 1 and c.author.shadowbanned %}{% endif %}
{% if c.is_pinned and c.is_pinned.startswith('t:') %}
-
+
{% elif c.is_pinned %}
{% endif %}
@@ -765,7 +765,7 @@
{% include "expanded_image_modal.html" %}
-
+
+
{% endif %}
{% elif not p.replies and p.deleted_utc == 0 %}
@@ -855,7 +855,7 @@
{% include "ban_modal.html" %}
{% endif %}
{% endif %}
-
+
{% include "expanded_image_modal.html" %}
{% endif %}
diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html
index af975f36a3..6746d22420 100644
--- a/files/templates/submission_listing.html
+++ b/files/templates/submission_listing.html
@@ -167,7 +167,7 @@
{% if v and v.admin_level > 1 and p.author.shadowbanned %}{% endif %}
{% if p.stickied and p.stickied.startswith('t:') %}
-
+
{% elif p.stickied %}
{% endif %}
@@ -659,4 +659,4 @@
{% endif %}
-
\ No newline at end of file
+
\ No newline at end of file