Matt Harvey #33 of the New York Mets pitches during a game against the Miami Marlins (Mike Ehrmann/Getty Images)

Jose Fernandez tied a career high with 14 strikeouts in seven scoreless innings to outpitch a resurgent Matt Harvey, and the Miami Marlins averted a series sweep by beating the shorthanded New York Mets 1-0 Sunday.

Fernandez (9-2) won his eighth consecutive start to tie Chris Hammond's team record, set in the franchise's first season in 1993.

Fernandez allowed four hits. The right-hander improved to 23-1 with a 1.53 ERA in 33 career starts at Marlins Park

David Phelps, the losing pitcher Saturday, bounced back with a 1-2-3 eighth. A.J. Ramos pitched a perfect ninth for his 27th consecutive save, including 18 this year.

Neil Walker flied out to the warning track in center to end the game. The Mets finished with four hits, Miami five.

Harvey (4-8) pitched well for the second outing in a row after a succession of poor starts. He went seven innings, allowed one run and lowered his ERA to 4.95.

Sign up for the NJ1015.com Newsletter

Get the best of NJ1015.com delivered to your inbox every day.

Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.