Fix bug in admin page