generateCourse debug: fix wrong var name