Barcelona boss Ernesto Valverde was pleased with the character his team had left behind at Rayo Vallecano.
The Spanish champions stunned his hosts with two late goals when he was able to extend the lead at the top of LaLiga with a 3-2 victory.
Barcelona took the lead early on through Luis Suarez, but seemed to have suffered a defeat when Jose Pozo and Alvaro Garcia turned the game over after a half-time break.
Luis Suarez scored a victory at the death to end Barcelona's comeback on Saturday
Barcelona coach Ernesto Valverde (right) was satisfied with the character of his team
The two late goals extended Barcelona's lead over Atletico Madrid at the top of the table
Ousmane Dembele equalized three minutes from time and Suarez scored his second goal in the final minute for a dramatic comeback.
Valverde accepted that his team was disappointed at some point in the game, but he was happy to take the three points, no matter how they came.
"I was satisfied with the win. Our attitude has always been the same, and that's what helped us to win, "said Valverde on the club's official website.
"We started well but lacked depth. We had a lot of problems with our opponents, and once they got a hit, she grew confident.
It was a late strike from Barcelona, who had three minutes remaining
Ousmane Dembele scored the equalizer in 2-2 before Luis Suarez scored the winner
The result extended Barcelona's lead at the top of the league, four points ahead of Atletico
"In the end, we had to try and try to find finishings in the area, and if that's not possible we'll try another route. The most important thing is the character of this team. "
Dembele replaced the ineffective Rafinha, who kept his place in the team in the absence of the injured Lionel Messi. Despite the difficulty of getting into the game, he looked revealing with his late equalizer.
"We expect a lot from him," said Valverde. "Dembele can be crucial and today he helped us with a great goal that we could use to reach the next one."
Suarez continued his hat-trick in El Classico with a double on Saturday night to bring his record for the season to nine LaLiga goals.
He said, "The game was very difficult, but most importantly, the team knew how to reverse the situation. We have to be self-critical, but the most important thing was to win the game. "