bug with counter not reset; resulting in 2^32 empty iteration until integer overflow