Fix InputOutputManager crash on OSX