PITTSBURGH (AP) Kyle Hendricks spent the first weeks of 2017 trying to recapture the stuff he dealt so easily a year ago while posting the best ERA in the majors.

Sometime in the third inning against Pittsburgh on Tuesday night, everything sort of clicked. It had to if the Chicago Cubs wanted to have any chance of beating Gerrit Cole.

Hendricks limited the Pirates to four singles over six innings and the Chicago's bullpen did the rest as the Cubs took advantage of another error by Pittsburgh's shaky distance to hold on for a 1-0 victory. Hendricks struck out three and walked two in easily his best performance of the young season for the defending World Series champions.

While Hendricks (2-1) isn't ready to say his early struggles are behind him, he took a step forward as the Chicago won for the sixth time in seven games.

''It's just one start,'' Hendricks said. ''It's not a `back' thing. I'm not in the zone, dialed in like I was last year. That was a completely different feeling and sensation (but) felt a lot better. It's more on track.''

Hendricks became the first Cub in nearly 80 years to lead the majors in ERA (2.13) last season but took the mound on Tuesday with the number at 6.19. It dropped to 4.50 after he kept Pittsburgh off balance with his mix of breaking balls and changeup to go with a fastball that only reaches the mid-80s but can find the corners when he's on.

''He looked much more like he did last year,'' Chicago manager Joe Maddon said.

Chicago's bullpen did the rest, with Wade Davis working a perfect ninth for his fifth save. Addison Russell doubled in the second off Cole (1-3) and scored when second baseman Alen Hanson airmailed first base on a Jason Heyward grounder, the Pirates' major league-high 20th error this season. They've also allowed 15 unearned runs, the most in the big leagues.

''I noticed that the runner wasn't running a 100 percent,'' Hanson said. ''I just relaxed a little and tried to make the play. When I noticed that he was almost there, I released the ball and just threw the ball away.''

The miscue spoiled a masterful outing by Cole. He struck out eight without issuing a walk and retired 14 of his final 15 batters. It wasn't enough for Pittsburgh, which has lost six of eight.

Cole only needed 78 pitches to get through seven innings but was pulled for pinch hitter Jose Osuna with the tying run on third and two outs in the bottom of the seventh against Chicago reliever Koji Uehara. Osuna flied out and Pittsburgh never threatened again.

''Guys are putting good swings on the ball,'' Cole said. ''It's just the way this stuff goes sometimes. There's gonna be ups and downs throughout the whole year. You can't get frustrated.''

MANFRED VISITS

MLB commissioner Rob Manfred, in town to help promote the Play Ball initiative, said Pittsburgh All-Star centerfielder Starling Marte did not appeal the 80-game suspension handed down last week after Marte tested positive for a banned substance. Marte is eligible to come back in mid-July.

Manfred added the league has not made any efforts to help resolve Pirates 3B Jung Ho Kang's visa issue. Kang remains in his native South Korea after being convicted on a DUI charge in February. Manfred said the league leaves immigration concerns and issues up to the respective teams.

TRAINER'S ROOM

Pirates: Placed struggling reliever Antonio Bastardo on the 10-day DL with a strained left quadriceps. The club said Bastardo tweaked the quad during a mopup appearance on Monday. Bastardo is 0-1 with a 16.20 ERA in six appearances this season. Pittsburgh called up reliever Johnny Barbato from Triple-A Indianapolis to take Bastardo's roster spot. Pittsburgh acquired Barbato from the New York Yankees this month.

UP NEXT

Cubs: Jon Lester (0-0, 2.66) makes his fifth start while still looking for his first decision of 2017. Lester is 4-3 with a 2.35 ERA in nine starts against the Pirates.

Pirates: Rookie Tyler Glasnow (0-1, 7.94 ERA) will make his eighth career start and fourth this season. Glasnow gave up six runs (four earned) in five innings of a no-decision against the Cubs on April 15.

---

More AP baseball coverage: https://apnews.com/tag/MLBbaseball

Copyright 2017 by Associated Press. Any commercial use or distribution without the express written consent of Associated Press is strictly prohibited.