reordering fix isAdmin bug