Bugfix in the insert function of dynamic hash table.