Undo index switch