fix macos config