Solve the path problem.