Fix bug in dashboard