fixed dashboard.js bug