correct segment check (off by one in LE/BE convert