Fixes a bug in GamePad class