bug fix for admin page