Method for contacts comparison was modified.

Method for contacts comparison was modified. Second checking was added.