fixes for undo/redo on pretty much everything, unless I miss some of them