fix bug when editing account