fix for osx