fixed the reset counts