Fixed bugs with the HashIndex