Fix getSegmentJacobian