In a battle outside Tomorrowland (which is believed to be a show by park guests), Finn becomes his DHI (during the day!) and knocks over the witch and spins around Jez really fast, slowly transforming her to a brighter girl, a girl identical to Amanda. Finn realizes the two are twins, twin witches, and Jez had been under a spell by Maleficent. Her real name is Jess. The two joyfully reunite and thank Finn, who escapes down a garbage chute with the plans and the pens, and Maleficent giving chase. Finn ends up in a large bin of trash and escapes, while Maleficent lands in a giant net, closed and captured by the Disney Imagineers. Finally, the witch has been caught and peace restores.
Hours later, Maleficent is locked up in her own jail cell in the queue of Pirates of the Caribbean, and the kids rejoice in the Cinderella Castle apartment because Amanda and Jess have reunited, the riddle has been solved, Walt's first pen has been found, and everything has been restored to normal around Walt Disney World. Finn touches Walt's first magical pen to the recovered plans of the park, causing the Magic Kingdom to illuminate, and the park becomes more magical as the rides magically become fixed, everything returns to tip-top shape, and the most elaborate fireworks the park had ever seen go off in the night sky. The five kids watch the park light up in the same path as they did on the map, and the plans illuminate as they celebrate a happy end.