Fix a bug for hash delete.