fix the bug in admin dashboard