Fixed bug in authn method handling.