Fixed a bug caused by user_course code.