{% if forloop.last %}{% endif %}
{% endfor %}
-{% endif %}
+{% endif %}
{% endfor %}
{% endif %}
diff --git a/helpdesk/templates/helpdesk/ticket.html b/helpdesk/templates/helpdesk/ticket.html
index 8ef343de..b4c30e6a 100644
--- a/helpdesk/templates/helpdesk/ticket.html
+++ b/helpdesk/templates/helpdesk/ticket.html
@@ -90,7 +90,7 @@ function googleTranslateElementInit() {
{% for change in followup.ticketchange_set.all %}
{% if forloop.first %}
{% endif %}
{% blocktrans with change.field as field and change.old_value as old_value and change.new_value as new_value %}Changed {{ field }} from {{ old_value }} to {{ new_value }}.{% endblocktrans %}
-{% if forloop.last %}
{% endif %}
+{% if forloop.last %}{% endif %}
{% endfor %}
{% for attachment in followup.attachment_set.all %}{% if forloop.first %}