fixed bug when no joystick was plugged in