Wishing the Genie Free
Ted wished the genie free from her bottle so he could have her, and she granted the wish. However, her soul was stuck to the bottle, so only her body could be freed. Her solutions was to swap their bodies, allowing her soul to remain with the bottle with Ted’s body. She would now just be a male genie, and Ted would now just be a female!