disitribute_scans bug fixed