fix secondary address scanning bug