fix osx problem