Fixed addressing bug in hashing loop