Fixed bugs in hash table implementation.