Fix bug with admin check.