Doesn't crash on OSX