fix copy in osx