Fix path generalization.