Simple, I see that everynight 2 villagers don't go to sleep and I tried to move or a Zombie makes them run and if a kill the zombie, the correct behavior is the villager goes to sleep, but no... they go to a specific coordinate, because if there is a hole, they go to the coordinate no matter nothing.
Please show a screenshot of this occurring with your F3 debug screen enabled.