fix error in border generation when 2 vertices had same location but different object