adx: check that the offset is not negative