Fix pasteFromClipboard