Fix: crash when running on OS X