Fixed retrieving errors on items and devices.
Fixed errors in retrieving devices and items.