Frontend Courses Controller Bug Fix