undo index change