Fixed a typo in course_events() and a name conflict.