Fix path expand problem.