fixed a bug where the stat tracker sometimes didn't reset