deduplicate exercise IDs