fix copy_to_clipboard