fix edit pwd bug