Fix wrong-restored segments_intersect