fix bug in top.js