Repair of hydraulics and hydraulic machines