repairing activitytype reference innaccuracy