Fixed bug in hash table