fixes bug in dashboard.js