fix the length of device name and device version