/fill doesnt run when called by a function

In my datapack, i have 2 functions (lets call them function1 and function2). function1 calls the other one using /function. function2 has some logic, and then has to fill exactly 10 blocks so its not outside the limit. somehow, everything runs except the fill command in function2. like the whole function logic gets applied, i even added a /tellraw to be absolutely sure it works. the wierd thing is, when i run the whole function2 by hand, not by datapack, the /fill actually works. im litteraly going insane, this doesnt make any sense to me.

Continue to help post