Villager should build walls effectively exactly as i shown at the end of the video

I would like to add that sometimes villagers simply don’t build the edge parts of the wall, leaving the foundation there.