Fix: ht_insert() should not be able to alter the configuration cfg