auto reset during the loop()

You are foiling my attempted demonstration of one of the less obvious reasons why code tags are important.

Oops. Sorry about that.

I think that subtlety is lost on people that can't even post code properly, though. A clue-by-four would be a better tool.