PITTSBURGH (KDKA/AP) — The Pirates pulled off a home series win and climbed back to .500, beating the Baltimore Orioles, 5-4.

Kevin Correia (9-6) struck out five and allowed four runs on nine hits over six innings and is tied for the major league lead in victories.

READ MORE: Jubilee Ministries And First Responders In New Castle Hold Food Distribution

Joel Hanrahan pitched a perfect ninth for his 20th save, becoming the third Pirates pitcher to do so before the All-star break.

The Orioles’ Blake Davis made an error in his major league debut. Josh Harrison’s ground ball to second with two outs and runners on second and third in the fifth went through Davis’ legs, and Brandon Wood and Michael McKenry scored on the error.

Andrew McCutchen had two hits, a run and an RBI for Pittsburgh (37-37), which took the final two games of the series following a four-game losing streak and to reach .500.

Nick Markakis went 3 for 5 with an RBI, and J.J. Hardy had two hits, including a two-run double, for Baltimore. The Orioles have lost eight of 11.

READ MORE: Man Charged In Shooting Death Of Ahmir Tuli In Pittsburgh Police Custody

Baltimore starter Zach Britton gave up singles to the first three batters he faced, with McCutchen driving in Jose Tabata. Harrison scored when Neil Walker followed by grounding into a double play.

Britton would retire the next eight before running into trouble again in the fourth. McCutchen led off with a double, advanced on a wild pitch and scored on Walker’s groundout.

Walker has 17 RBIs in June, the most RBIs of any second baseman in the majors and the third-most RBIs of any NL player since last season’s All-star break.

Markakis extended the American League’s longest active hitting streak to 13 games. He had an RBI single in the third.

Hardy lined a two-run double past a diving Harrison at third with two outs in the fourth, giving Baltimore its only lead.

MORE NEWS: Carnegie Library Of Pittsburgh And Pa. Diaper Bank Team Up To Help Families In Need

Britton (6-5) has won only once since May 1. The rookie allowed five runs – three earned – on seven hits and a walk with five strikeouts in seven innings. He also went 2 for 3, meaning Orioles pitchers are 7 for 15 this season.