Fix initial handleAuthResult