diff --git a/templates/videos.html b/templates/videos.html
index 3c6587b35c01488f9370ca210d22fd48427a184b..fc8bfe33dad656a98a2e3f17c66cc826cf990bf5 100644
--- a/templates/videos.html
+++ b/templates/videos.html
@@ -24,7 +24,7 @@
 					</div>
 					<ul class="courses-list list-group">
 						{% for i in g.list %}
-							{% if groupedby == semester %}
+							{% if groupedby == 'semester' %}
 								{{ course_list_item(i) }}
 							{% else %}
 								{{ course_list_item(i,true) }}