Fix gear script