Alex Sanchez, in injury time, settled the game 3-2 in Barca's favour.
"We have to improve a lot, because of our errors they tied the match," said Mascherano.
"We were lucky to win but it won't always be this way. Everything will get more difficult in the future."
For the big stories and the banter follow us on Twitter: @tribalfootball