Properly assign device name.