Stocks recover following bear market scare