fixed error when joystick not connected