Fix persistence of stat values - v 1.3

When having more than 10 values, the persistence that was switching
persistence entries was corrupting the data.