Solve problem with paths.