NEW YORK (AP) — Slumping newcomer Curtis Granderson hit a sacrifice fly in the 14th inning and the New York Mets outlasted the Atlanta Braves 4-3 on Sunday to prevent a three-game sweep.

David Wright had four hits and New York took advantage of three early errors by Atlanta, which had won seven of eight. Granderson went 0 for 6 with an error and was booed all afternoon, but turned those jeers to cheers at the end of a long day.

READ MORE: Atlanta Underground Film Festival draws fans to RoleCall Theater at Ponce City Market through Aug. 21

Kirk Nieuwenhuis drew a leadoff walk from Gus Schlosser (0-1) and advanced on Ruben Tejada’s sacrifice bunt. Eric Young Jr. was intentionally walked to bring up Granderson, hitless in his last 16 at-bats and stuck in a 4-for-44 slide.

READ MORE: Marvin Sapp attends Atlanta red carpet premiere of “Never Would Have Made It” biopic

The runners moved up on a wild pitch, and Granderson lifted the next delivery into medium left field. Nieuwenhuis slid home ahead of Justin Upton’s throw, and the Mets mobbed Granderson near first base.

MORE NEWS: Local LGBTQ+ advocates, health official respond to increase in monkeypox cases

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