Fix Undo after Paste