Fixed the device id hash