Fix gear bug
Merge pull request #26 from kahnjw/fix_gear_bug

Fix gear bug