Barcelona reached the last 16 of the Copa del Rey but were given a scare by fourth-tier Barbastro in an entertaining 3-2 win on Sunday.
The record 31-time winners took a two-goal lead through Fermin Lopez and Raphinha, before Adria de Mesa pulled one back for the hard-working hosts.
Substitute Robert Lewandowski netted from the spot for the Spanish champions but Marc Prat smashed in a late penalty for the hosts, who refused to give up.
With your current subscription plan you can comment on stories. However, before writing your first comment, please create a display name in the Profile section of your subscriber account page.