Fix undolist.