fix IVs for index >= 256