fixed clipboard support for macOS