fixed updateDevice()