Fixing bug whereby the activity and activityobject names were swapped