and 5 is another item in I, and it's not present in S.
Yes it is, it's right there, between the 4 and the 6.
That's not the same one - track the permutation chain.