New Structures are floating no matter what I do

So I've been making a structure datapack, and I managed to make a town_center.json with a gate structure, which then branches off with 'streets' and then has houses generate off the streets.. However, no matter what I do, the buildings always float if they meet elevation ( edge of hills and mountains etc ).. It seems as though the terrain adaption is just not working at all with any of it.. I've attached images of the floating building, and a picture of my actual structure and how it's being saved

Continue to help post