fix osx startup error