fix edit problem