Resolves an issue where the debug menu closes instantly on Mac OS X.

This has been bugging me since forever.