Fix crash on OSX debugger