Fixed excess authenticagtion bug.