fix to prevent activity duplicates when users change activity type.