Fixing failures by repairing failed parts