Fix contact deduplication