fix type in list_devices