fixed mw for macos