Fix TypeError when using GearClient - fixes 319

Fixes #319.