fix bug device to deviceId #2