Fixed longstanding issue where only the first activity UID was marked as synchronized, even when duplicates existed.