fix the device uri empty issue
fix the listing of all devices