Fix crash under OS X 10.6