remove position from the list after undo