The stock's rise snapped a four-day losing streak.