fix function temp_dev_scan