Fix a hotkey-related crash