Fix 32 bit hashing algorithm