Fixed a 64 bit looping type mismatch.