Stocks cut losses to end the day mixed