fix edit path problem