fixed sanity check error in hash.c