Only update the state variable once per iteration.
1 file changed