PITTSBURGH (AP) — Felix Hernandez settled down after a shaky start and picked up his first victory in more than two months when the Seattle Mariners topped the Pittsburgh Pirates 7-4 on Tuesday night.

Hernandez (5-4) gave up four runs — all in the first two innings — and struck out three in six innings in his first win since May 21. Steve Cishek worked a perfect ninth for his 24th save.

Kyle Seager's three hits for Seattle included his 20th home run, and Franklin Gutierrez added his 10th off Francisco Liriano (6-10).

Liriano hit his second career home run, a 416-foot shot to center off Hernandez in the second inning, but saw his mild resurgence this month take a significant step back. Liriano surrendered seven runs in just 3 1/3 innings as his ERA jumped to 5.38.

More From 1460 ESPN