fix error response in course-list widget