West Ham moved into the Premier League's top four as Tomas Soucek scored twice in a 3-2 win at Crystal Palace.
The Hammers suffered an early setback when Wilfried Zaha put Palace in front after just three minutes.
But the stronger mentality that David Moyes has lauded in West Ham this season showed as Soucek struck twice in 16 minutes to turn the game around.
Only Manchester United's Bruno Fernandes has scored more Premier League goals from midfield than the Czech since he joined from Slavia Prague a year ago.
Soucek powered home a header from close range from Michail Antonio's cross and then bundled home Aaron Cresswell's free-kick at the back post.
West Ham could have been out of sight by half-time as Antonio then twice struck the post.
A third goal was no more than the visitors deserved and it came 25 minutes from time when Craig Dawson headed in Jarrod Bowen's corner.
Michy Batshuayi pulled a goal back with virtually the last kick of the game but it was too little, too late for Palace.
A sixth consecutive win in all competitions takes Moyes's men above Liverpool in the table and Jurgen Klopp's struggling Reds will be wary of their trip to the London Stadium on Sunday.