fix login on youtube in foreach