fix a bug where no devices where found