Add IHashQueue to improve the prermance and fix a bug.