Fix attributes for device to support Hash