- fix crashes on osx!