getDeviceType fix