fixes segment availability range calculations