set initial_devices after the scanning of devices.