fix path expand problem