fix device enumeration