fix HashTable bugs