fixed AIOOB when vector is smaller that ordinal