fixed purgeStats and refreshValues