fix copy and paste to clipboard