Fix: ht bucket index calculation

Hm, would like to hear @neithernut s opinion.