The Philadelphia Eagles came away with a pivotal 34-27 win over the Green Bay Packers on Thursday night, but not before an incredibly scary moment.

Late in the fourth quarter, Eagles safety Andrew Sendejo tried to put a hit on Packers tight end Robert Tonyan, but he missed and instead hit his teammate, cornerback Avonte Maddox.

Maddox lay on the field for an extended period of time and eventually had to be stretchered off. He seemed to be alert, and later, Philadelphia said that he had movement in all of his extremities and was taken to the hospital for precautionary reasons.

But Eagles players knew all along he would be just fine.

“I was cracking jokes just to make him laugh,” safety Malcolm Jenkins said, according to Tim McManus of ESPN.com. “He laughed — a lot, actually. 
 It's a scary thing when it's one of your teammates — especially somebody young like him, who's been playing really well for us. He was good. He was moving around, so that was a good sign.”

The injury occurred on Green Bay's final drive of the game, and the Eagles used Maddox's injury as motivation to stop the Packers and preserve the win.

“We pretty much just clicked into the mentality of, ‘We've got to win it for him,'” said linebacker Nigel Bradham. “That was a critical loss for us, a guy that plays multiple positions.”

Maddox is in his second year with Philly after being drafted by the club in the fourth round of the 2018 NFL Draft.

The Eagles improved to 2-2 with the victory.