Fix len of iterable bug for self.devices