fix for macos