debug fix for osx runtime_error