OSX bugfix