fix a bug of hash iterator