Fixed regression in authenticationMode method