fixing the hash problem