fix bug with editing addresses