Corrected errors with searching for devices of a specific type.