diff --git a/events.ics b/events.ics
index 69782d6de977f66e96a97689d9c0c7198f892bff..861d33c6562e2b4f1a0511ac38caa9754c22d1b0 100644
--- a/events.ics
+++ b/events.ics
@@ -16,5 +16,5 @@ CLASS:PUBLIC
 DTSTART:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}Z
 DTEND:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}Z
 DTSTAMP:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}Z
-END:VEVENT{% endfor %}
-END:VCALENDAR
+END:VEVENT
+{% endfor %}END:VCALENDAR