Fix key binding crash