fix onAuthenticationFailure