Fix update_activities.