restore iterations for scan_random