fixes calculations for segments read from the SIDX