Repair terminal path.