Fix issue on allocation of the hash table