Fixed contours when segments have length of 0