fixed problems with hash table