diff --git a/src/richie/apps/courses/templates/courses/cms/course_detail.html b/src/richie/apps/courses/templates/courses/cms/course_detail.html
index cbdae3859f..06d3a34574 100644
--- a/src/richie/apps/courses/templates/courses/cms/course_detail.html
+++ b/src/richie/apps/courses/templates/courses/cms/course_detail.html
@@ -368,22 +368,21 @@
{% blocktrans context "course_detail__title" %}
{% block runs %}
{% render_model_add course "" "" "get_admin_url_to_add_run" %}
- {% with runs_dict=current_page.course.course_runs_dict %}
- {% with open_visible_runs=runs_dict.0|add:runs_dict.1|add:runs_dict.2|visible_on_course_page:request.toolbar.edit_mode_active %}
-
- {% for run in open_visible_runs %}
-
-
-
-
-
-
-
- {% endfor %}
- {% endwith %}
+ {% with runs=current_page.course.course_runs|visible_on_course_page:request.toolbar.edit_mode_active %}
+
+ {% for run in runs %}
+
+
+
+
+
+
+
+
+ {% endfor %}
{% endwith %}
{% endblock runs %}