Fixed the issue with courses from inactive courses showing up