fixed comparision for zero hashing