Fix comparision overlapping segments.