fix duplicate activity issue for activity and bulk upload