fix copy and paste on mac