fix addresses() call in sweep