Repairing stripped and broken gears