viewAllonlineCourses bug fix