Fix incorrect hashing algorithm