Barcelona midfielder Ivan Rakitic says they can be happy with the manner of victory at Rayo Vallecano.
It took two late goals for Barcelona to turn a 2-1 deficit into a 3-2 win.
"If it was so easy to correct our problems then we would do it right now," Rakitic said after the match.
"We had to be a little smarter, responding to their pressure and playing longer.
"We've had bad luck and gave a good reaction and I think that winning like this reinforces the team."