Fix path repair problems.