fix regressed scan_random command