Error adding device to global collection "The model does not exist"