GearSwap: Mote-libs: Fix issues with case selection.