Bug in reading deviceName.