Fixed infinite loop if no devices found