Setting the index for the stack item at the right time (Rewind will overwrite).