Fixed undo/redo section for copy