restore current iteration counter