fixed a couple of bugs in listDevices