Correct _rearrange in segment()