Fix osx clipboard issue