fixbug when the device has no name