new undo redo bug fixed