Plot hole: Aladdin breaks the lamp and that causes the castle to vanish in thin air. The many guards, servants and objects who were not part of the original enchantment but simply transported by the Vizier's wish are somehow also gone, and the genie still has his powers, despite saying that without it "I would be my own man" and that the power was in the lamp.
Plot hole: Aladdin and Zamir plan how to infiltrate the castle. There's a window that "seems particularly inviting" in their words. "A man standing on another man's shoulders should be able to make it without effort", Zamir says. So we see Aladdin land inside. And then, Zamir. Whose shoulders did Zamir climb to make the jump? It was just the two of them. (00:59:40)