looks like a fix for MacOSX 10.7+ crashes