Alexei Ramirez made up for an early mistake late.

The shortstop matched a career-high with four hits when he doubled home the go-ahead run in the 11th inning and the White Sox downed the Philadelphia Phillies 5-4 in Game 1 of a doubleheader in front of 41, 562 at Citizens Bank Park.

Addison Reed pitched out of a jam to close out a third White Sox victory in four games for his 24th save in 28 tries. Ramirez finished 4-for-6 with two singles, two doubles and an RBI as he raised his average to .289.

“Earlier in the game, he pulled one and got one in the gap,” White Sox manager Robin Ventura said. “Now he’s going the other way. Again, he’s been swinging it great. This last stretch he’s had, he’s making solid contact and very aggressive at the plate.”

Ramirez had a pretty strong afternoon prior to his two-out double off J.C. Ramirez (0-1), but it wasn’t quite perfect.

His base running mistake in the first inning seemed to stunt what could have been a fortuitous opening. Instead of having runners on the corners with no outs, Ramirez was caught in a rundown between first and second after he singled. The White Sox then failed to bring Alejandro De Aza in from third.

The run played an important role when the White Sox couldn’t hold a one-run late and headed to extra innings.

But Ramirez came through in the 11th after Alejandro De Aza’s two-out triple to left center. He drilled a 0-1 fastball from Phillies reliever J.C. Ramirez into the gap in right-center to break a 3-all tie.