Stocks ended a wobbly day modestly higher after two days of broad declines, the AP reports. The gains Thursday weren't enough to put the market into the black for the week, keeping it on track for its fourth weekly loss in a row and its first losing month of the year. Technology companies clawed back some of their losses from the previous two days but are still down sharply for the month. Energy companies dropped as the price of crude oil fell. Marathon Petroleum fell 3.6%. The S&P 500 index edged up 5 points, or 0.2%, to 2,788. The Dow Jones Industrial Average rose 43 points, or 0.2%, to 25,169. The Nasdaq added 20 points, or 0.3%, to 7,567. Bond prices rose. The yield on the benchmark 10-year Treasury note fell to 2.22%. (More stock market stories.)