reset the retries counter at each iteration