fix for firefox and gamepads