Fix joystick crash