Fix off by one error in check for last address and pocket to scan.