fix a bug: save to wrong index of addressbook