There's a doorway leading from the room with the Gypsies in it inside the Ziggurat that goes down to a corridor with a dispel magic trap. It was unlocked on the way into the corridor, but locked to get back out, and consequently an inconvenient trap for characters without a key.
The door perhaps is not hooked up to have the same state on both sides of the transition?