Fix hashing function. I'm stupid.