fix a gear creation error