fixed sync iteration counter