MIAMI (AP) — Casey McGehee had three RBIs, including a two-run tie-breaking double in the seventh inning, and the Miami Marlins rallied in their home finale Thursday to beat the Philadelphia Phillies 6-4.

With the comeback, Tom Koehler (10-10) finally reached double figures in victories for the first time. He had gone winless in his six previous starts despite a 3.50 ERA.

READ MORE: The Message: 'Everyone Can Help Someone Else' During National Mentoring Month

Koehler allowed four runs in seven innings. Steve Cishek pitched a perfect ninth for his 39th save in 43 chances.

The victory ensured the Marlins will end a streak of three consecutive last-place seasons in the NL East. They finished 42-39 at home, their first winning record since Marlins Park opened in 2012.

READ MORE: Attention, Parents! Application For Broward Magnet Schools Fast Approaching

Philadelphia sewed up last place in the division and finished 36-45 on the road.

(© Copyright 2014 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)

MORE NEWS: Miami-Dade School Board To Hold Special Meeting To Interview Superintendent Candidates

[display-posts category=”sports” wrapper=”ul” posts_per_page=”5″]