corrections in statistics.js