Fixed activity_type bug