fix secondary address scanning bug

only happened when using a non-ffffffffffffffff search mask