when popping from stash, restore index state to be as before