fix address discovery - for n checked and k discovered, the first k were returned instead of the actually used k