US stocks gave up early gains and finished mostly flat Tuesday as investors dumped Facebook shares for a second straight day amid new controversy about the company's $16 billion IPO.
A last-minute rebound allowed the S&P 500 to finish in the black, but the other indices counted small losses for the day after the morning trading hours registered strong gains.
The Dow Jones Industrial Average slipped 1.97 points, or 0.01 percent, to finish at 12,502.81.
The broad-based S&P 500 index rose 0.64 (0.05 percent) to 1,316.63, while the tech-heavy Nasdaq lost 8.13 (0.29 percent) to 2,839.08.
The markets got early help after the National Association of Realtors reported US existing home sales across all regions in the United States increased in April, by 3.4 percent, and home prices continued to rise.
Lawrence Yun, NAR chief economist, said the trend "has shifted from a buyers' market to one that is much more balanced, but in some areas it has become a seller's market."
But selling overall clicked in during the afternoon, with a rebound in only the last 10 minutes of trade preventing significant losses for the day.
Bank shares were strong, with JPMorgan Chase, under pressure over its derivatives trading losses, surging 4.6 percent.
It was followed by Bank of America, up 2.2 percent, and Citigroup, adding 2.6 percent.
Facebook action dominated Nasdaq trade again, the share falling another 8.6 percent in its third day of trade as accusations flew that leading underwriters had cut their projections days ahead of the initial public offering Friday.
The shares fell as far as $30.94, and closed at $31.12, leaving them 18.1 percent below the $38 IPO price.
Google finalized its $12.5 billion deal for Motorola Mobility, hoping that the purchase of the smartphone maker will give it a stronger, lasting position in the wireless industry.
Google shares fell 2.2 percent after having risen a similar amount the day before.
Shares in US cloud-based e-commerce firm Ariba zoomed up 19.2 percent after German business software giant SAP announce it would buy the company for $4.3 billion.
The bond market retreated. The yield on the 10-year Treasury rose to 1.79 percent from 1.74 percent Monday, while the 30-year climbed to 2.89 percent from 2.79 percent.
Bond prices and yields move in opposite directions.