Fix copyToClipboard.