small but important fix for getAuthUrl