Fix a bug when editing current selected account