fixed change in sign of length(Interval(a,b))