fix line intersection for snapped segment