Fix reference to ht_ids