fix joystick bug