Bug fix for admin page