isAdmin bug fix