Fix: ht bucket index calculation