fixed the dashboard bug