Eric Stonestreet, Jesse Tyler Ferguson and Julie Bowen were visiting Stonestreet's hometown of Kansas City, Missouri, when their crowded hotel elevator stopped short of the third floor Saturday, according to CNN.
The actors were on their way to headline a fundraiser for the Girls and Boys Club in Kansas City when the elevator got stuck.
They were trapped with about a dozen other people for 50 minutes while outsiders tried to figure out a way to get the elevator unstuck.
Stonestreet tweeted a photo of themselves in the elevator, and Ferguson also posted a short video at the 35-minute mark of the whole elevator shouting "Get us out!"
Kansas City firemen eventually came to the rescue and got everyone out with a ladder around 10 p.m. Friday, KCTV reported.
Crews from the Kansas City Fire Department freed the group at about 10 p.m., an hour after they were scheduled to appear.
"Finally made it out of the stuck elevator at the one hour mark. At least the firemen in K.C. are cute," tweeted Ferguson.
"I honestly handled being stuck in an elevator for 50min better than I thought," tweeted Stonestreet. "All @jessetyler did was pass wind."
"after a quick hour trapped in the service elevator, we were rescued by Duke and the Fire dept. here's a photo from … http://say.ly/iAj5hw3," Stonebrook tweeted.
When they finally took the stage, the actors praised and thanked the Fire Department.