Fix in gear.js, thanks to ElectricAxel