Fixing bugs in counter history when addon loads.