Generating Custom Structures all ways spawns on the roof.

So I have been working on a datapack, and I'm trying to add a new structure to the nether. But when I generated it, it was on the roof. Does anybody know a fix for this?

Continue to help post