fix total field in top.js