adding fix from mote
Merge branch 'master' of github.com:AlanWarren/gearswap