As the title says. I can’t figure out why the villagers aren’t scared of the zombie. I made this iron farm using this youtube guide “Minecraft Iron Farm Shrine by Cortezerino”. Unfortunately I cannot post the link to this post.

I have 3 villagers with 3 beds in there and did not sleep for 3 days to give the villagers a chance to sleep. Does anyone know a possible solution? Any input would be appreciated!
Villager not scared of zombie