Fix copying to the clipboard