fix adapt osx