fix macosx