Fix gear bug