Even the magic of Disney couldn’t keep Aladdin’s magic carpet the right way up at a recent performance at a park in California.

Performers in Disney’s Aladdin: A Musical Spectacular were left suspended upside down and swaying after a malfunction meant the magic carpet flipped over mid performance.

The show at Disney’s California Adventure is based on the film Aladdin

Grainy footage shot by audience members clearly shows the prop swinging from side to side upside down on the stage, leaving the performers, who were strapped in, swaying along.

Luckily, no one involved in the show was hurt, although the California Adventure park was closed for a brief period.

A spokesperson said it was normal safety practice for the performers to be harnessed and confirmed all those involved walked away uninjured.

James Kim, who was present at the performance, told the Orange County Register: ‘Right near the end, you heard a mechanical glitch. It stuck out at about a 45-degree angle and then it flipped upside down.’

Disney also recently announced it has won the rights to build a series of Avatar-themed rides at its parks, with construction set to begin in its Orlando, Florida theme park in 2013.

Director James Cameron said the attraction will ‘be able to bring Pandora to life like never before’.