fix activityType (to support iOS < 6)