fix bug in dashboard