A shocking blunder from Fulham goalkeeper Marcus Bettinelli proved costly as Sunderland came through their FA Cup fourth-round replay with a 3-1 win at Craven Cottage.

Late goals from Ricardo Alvarez – his first for the club – and Jordi Gomez completed a Sunderland comeback Tuesday, ensuring the Premier League side will now face Bradford City, the conqueror of Chelsea, in round five.

Fulham took the lead through Hugo Rodallega following early pressure from the visitors, but was then left to rue an error from Bettinelli, who dropped a seemingly innocuous cross from Patrick van Aanholt into his own net under minimal pressure.

Gus Poyet’s men took full advantage, Alvarez making it 2-1 with a fine individual goal in the 75th minute. And any hopes of a Fulham comeback were ended in stoppage time when Gomez converted a penalty awarded for a foul on substitute Danny Graham.

Sunderland was forced to make a late change to its side, with Steven Fletcher replacing Connor Wickham after the striker picked up an injury in the warm-up.

Yet that didn’t seem to affect the visitors as they made an assured start, and Bettinelli had to make instinctive early saves to deny Gomez and Fletcher, with the Scotland forward also seeing a goal ruled out for offside.

The hosts had been on a four-match unbeaten run up until their 2-1 league defeat at Blackburn Rovers last time out, but they struggled to build any momentum in the early stages.

Nevertheless, it was Fulham that struck first when Sunderland’s defense failed to clear a corner. Cauley Woodrow saw his effort blocked on the line, but Rodallega was on hand to dispatch his 10th goal of the season from close range.

Buoyed by that goal, Kit Symons’ side could have been awarded a penalty just four minutes later when Alvarez brought down Ross McCormack, but referee Paul Tierney waved away the appeals.

The Championship outfit continued to threaten as halftime drew closer, McCormack almost doubling the advantage when he fizzed an effort just wide.

Fulham also made a bright start after the interval, yet Sunderland was gifted an equalizer when Bettinelli flapped haplessly at Van Aanholt’s deflected cross and allowed the ball to drop over the goal line.

Emanuele Giaccherini curled a sumptuous effort narrowly off target as Fulham struggled to come to terms with the setback.

Manchester City loanee Seko Fofana provided encouragement for the home side, but it was Sunderland winger Alvarez who stole the show. The 26-year-old, on loan at the Stadium of Light from Inter, cut in from the right flank – beating two defenders in the process – before unleashing an unstoppable drive that left Bettinelli helpless.

Victory was then put beyond all doubt for the visitors when Graham went down in the area under pressure from Jack Grimmer, and Gomez stepped up to dispatch coolly from the spot.