Window is being generated underground on a surface

Hello,
I’m trying to do a simple daylight analysis of a greenhouse. I used the “aperture by ratio” option to generate the glazing. It works fine on all the surfaces except one as you can see in the image I’ve attached. How do I fix this? I can’t seem to understand why it is happening.

Model