fixed bug in hash table