Barcelona B ended a run of four successive defeats as they recorded a 3-2 away victory over Alaves in the Spanish Segunda Division.
The home side took the lead in the 17th minute through Borja Viguera as he fired the ball past Jordi Masip.
However, Barcelona were back level within minutes when Edu Bedia found an equaliser in the 23rd minute and the visitors were soon ahead as Sandro Ramirez slotted the ball Inaki Goitia just before the break.
After half time things got better for Barcelona as Joan Roman got their third with a neat finish from close range to leave them in command of the game.
Viguera got a goal back for Alaves late on to set up a tense finish, but the visitors held out for their fourth win of the season.