Fix typo that will result in divide by zero

Minor fix, in case we support joystick in future.