Fix error in OnClientAuthenticated event