Fix code
Remove contacts with same endpoint as new contacts but with different ids