Fixed bug for deleting addresses.