Corrected a bug in contactMapper where contacts between chains were not
considered