fix activities issues in course page