Stocks ended the week in the red, amassing more losses for the fourth session since Monday. The tech sector was the main culprit, dragged lower by a selloff in Apple (AAPL - Get Report) shares. The looming 'Brexit' vote next week also spooked investors. Crude oil closed Friday with a weekly loss of just over 2%. An earlier rally pared gains in the late afternoon after the number of active oil rigs in the U.S. rose for their third straight week. French media company Vivendi (VIVHY) has upped its stake in Ubisoft entertainment to just over 20%. The company said it would not make a play to take control of the videogame developer for the next six months. GoPro (GPRO - Get Report) spiked after JPMorgan said sales showed improvement. Analysts said increased marketing and a streamlining of its product portfolio helped to boost sales.