Correct path replacement.