fix check on administrate permission