fixed relocation of segments after 1 due to non-reset offset