compute_HT size bug fix