ht_search(): i think i fixed a bug that wasnt caught by my unittest