fix snap to intersections of xlines