Fix gear crash