Admin dashboard bug fix