Fix the hashing function
We need the value as a hex