Carabao Cup winners Manchester United came from a goal down to beat West Ham in a frantic finish at Old Trafford and book an FA Cup quarter-final tie with Fulham.
Alejandro Garnacho curled in a 90th-minute strike past Alphonse Areola, before Fred steered in an injury-time third goal to put the hosts into the last eight and see off the battling Hammers.
West Ham scored first early in the second half through Said Benrahma's powerfully-struck shot which flew into the top corner past David de Gea.
The home players had thought the ball had gone out for a throw-in, with Diogo Dalot and Antony both stopping.