fix device type