HOUSTON (AP) — Evan Longoria became the second Tampa Bay player to hit for the cycle and drove in three runs to lead the Rays over the Houston Astros 6-4 on Tuesday night.

He was a double shy when he came to the plate with two outs in the ninth inning and laced a laser to left field. Longoria dashed to second base and slid in to avoid the tag of Jose Altuve. Longoria is the sixth player to hit for a cycle this season. 

He was initially ruled out, but the call was overturned after a crew chief review. Most of the Rays stood up behind the railing of the dugout and cheered as the call was reversed, and Longoria flashed a big smile knowing that he joined Melvin (then known as B.J.) Upton as the only Rays to achieve the feat.

Logan Morrison hit a solo homer and finished with two RBIs as the Rays bounced back after losing Monday’s opener 14-7.

Lucas Duda singled with one out in the first before Longoria launched his towering homer, which banged on train tracks atop left field, off Mike Fiers (7-6) to make it 2-0. Morrison’s 27th homer came next to make it 3-0.

Rays starter Chris Archer (8-6) allowed six hits, four runs and struck out five in 6-plus innings to get his first win since July 4 and improve to 5-2 in eight career starts against the Astros. Alex Colome pitched a perfect ninth for his 31st save.

Duda doubled with one out in the third before scoring on Longoria’s first triple of the season to push the lead to 4-0. Longoria then scored on a two-out single by Adeiny Hechavarria.

Archer had allowed just one hit when Carlos Beltran sent a 96 mph fastball into the seats in right field with one out in the fifth to cut the lead to 5-1. He retired Evan Gattis before Alex Bregman’s solo shot to left field got Houston within 5-2.

Reymin Guduan took over for Fiers with one out and one on in the seventh and allowed consecutive singles to Longoria and Morrison with two outs to send another run home to make it 6-2.

Marwin Gonzalez doubled with no outs in the seventh before an RBI single by Beltran ended Archer’s night. Steve Cishek was greeted by a double from Gattis before Beltran scored on a groundout by Bregman to cut the lead to 6-4.

The Astros had runners at first and…