It's on java and the version is 1.21.10

I'm making my first villager farm but they keep trying to go through the hole for the babies, I tried destroying all the beds and going to the nearby village (which is over 100 blocks away) to destroy the work tables, but they keep trying to go through here, one of them even ignores his work table.

It doesn't show here but I also added beds for them inside the farm becuase they weren't breeding, and the only time they spawned a baby it spawned on this side so it didn't fell. But they don't care at all, they're just there all day.
My villagers keep trying to scape