The S&P 500 has turned positive with help from technology stocks in a volatile session.
The energy index was the S&P's biggest percentage loser followed by financials, which have been dogged by worries about cooling global growth, interest rates and trade tensions.
But an afternoon comeback in Apple shares appeared to cheer up investors in the broader technology sector.
The Dow Jones was up 0.04% at 24,398.6 points, while the S&P 500 gained 0.14% to 2,636.7. The Nasdaq added 0.79% to 7,023.9.
After a sea of red in the morning, seven of the 11 major S&P sectors were positive by late afternoon. The technology sector led the gainers with a 1.4% gain.
Apple was trading up 0.6% at $169.54 after hitting a low of $163.33 earlier in the day.