It was already hard enough, in and of itself, for investors to resist the temptation of cashing in some gains from Monday's rally. But the Street also had to deal with a disappointing outlook from Texas Instruments ( TXN), spiking oil and another drop in consumer confidence. Still, just prior to the close, stocks staged a comeback as investors bet again on tech ahead of earnings from Amazon.com ( AMZN). Given that Amazon's shares plunged 8% after release of the report, all bets are off for Wednesday. On Tuesday, while major stock proxies remained underwater, they ended well above earlier lows. The Dow Jones Industrial Average finished down 7.13 points, or 0.07%, at 10,377.87. That was off a morning high of 10,411, but well above an earlier low of 10,316.88. An afternoon reversal in the shares of Intel ( INTC), which fell after TI's weak sales guidance, also helped the blue-chip average turn around in the afternoon. The S&P 500 fell 2.84 points, or 0.24%, to 1196.54. The S&P, which had traded as high as 1201 in morning trade, had dipped to an intraday low of 1189 in the afternoon, before bouncing back. The Nasdaq Composite dipped 6.38 points, or 0.3%, to 2109.45. The tech heavy index first fell to a low of 2094 in the afternoon under pressure from semiconductor issues. The Philadelphia Semiconductor Sector Index ended down 1% on the day, after losing 1.8% earlier. Investors didn't completely forget the reason for Monday's rally: the appointment of Ben Bernanke to replace Alan Greenspan as the next Fed chairman in 2006. But on Tuesday, the impact of the Bernanke appointment on other areas of the market, such as surging bond yields, took a chunk out of equity prices. It also undermined the dollar, thereby contributing to strength in the price of crude oil -- which gained $2.1 to $62.44 per barrel -- and of gold, which rose $7.7, or 1.7%, to $474.7.