fix: templates for cards
diff --git a/erpnext/www/lms/course.html b/erpnext/www/lms/course.html
index f8618e0..250c39d 100644
--- a/erpnext/www/lms/course.html
+++ b/erpnext/www/lms/course.html
@@ -96,7 +96,7 @@
 				{{ card(topic) }}
 			{% endfor %}
 			{% if topics %}
-				{% for n in range(3 - ((topics|length)%3)) %}
+				{% for n in range(((topics|length)%3)) %}
 					{{ null_card() }}
 				{% endfor %}
 			{% endif %}