Improved undo/redo syncing, fixed undoing block placement