Two dozen theme park goers had an unforgettable experience for all the wrong reasons this weekend when they got stuck on a roller coaster for nearly four hours at Six Flags America in Maryland.

Seventeen adults and seven children got stuck when a high-speed roller coaster named the Joker's Jinx suddenly came to an abrupt stop in the air on Sunday afternoon around 2:30 p.m.

"They are in a divot of the track, so they are in a place where they can't really go forward or backward without power," said Prince George's County Fire Chief Marc Bashoor, according to WJZ.

Although no one was injured, the 24 riders were suspended 79 feet in the air for almost five hours in 80 degree weather until they were rescued one-by-one.

"At first, I think everybody was OK. And then as the sun baked on them, I am sure folks started getting more antsy about being up there," said Bashoor.

"The good thing is we have a good training relationship our technical rescue teams train with the amusement parks," he added.

After the incident, Six Flags representatives released a statement, saying: "The ride has a sophisticated, computerized safety system that can cause such ride stoppages. While we are not yet sure what caused the stoppage, the ride performed as it is designed to."

The ride, which reaches speeds of 60 mph and includes four upside down turns, was shut down for the remainder of the day.

Six Flags spokeswoman Debbie Evans announced that the Joker's Jinx would be off limits to thrill-seekers while officials investigate the incident.

"The ride will remain closed until the park completes a thorough investigation and both the staff and ride manufacturer have determined the ride is safe for operation," read the Six Flags written statement, according to WJLA.