S&P extend losing streak to 4 days; Nasdaq gains