fixed partial bug in segmentSkel