fixed bug in multi ids for duplicate contacts