I've noticed that villagers will stick like glue to the corners of their houses, without going inside, even during the night-time, which could spell disaster for the villagers. I found one who was just standinding there, not even near a house! This has been a bug for ages, since before I joined Minecraft.
Duplicate of MC-142817