fixed bug in joystick.py