fixed overpersistent undo rings bug