bugfix for read joystick example