fix admin flag query.