Repairing erosion and dilation.