diff --git a/community/www/courses/course.html b/community/www/courses/course.html
index 8f39fa1a..21c12831 100644
--- a/community/www/courses/course.html
+++ b/community/www/courses/course.html
@@ -131,5 +131,5 @@
{% endfor %}
-{% endfor %}
+{% endif %}
{% endmacro %}