Fixed hash iteration loops.