fixing bug for dashboard