Help with fixing a broken structure datapack?

How do I fix a structure generating incorrectly? This igloo is supposed to generate like a "Vanilla" igloo would. Dungeon on the bottom, Ladder connecting to the trapdoor inside the structure and the Dungeon.

Continue to help post