fix patch bug when mix of new and old contacts