-fixed uniqueDeviceCounter incrementing for every device update