exception fix in BasicAuthenticator