In event 18, there's probably some ambiguity about which peasant objects are involved causing the issue. Adding a "for each peasant" loop to the event may help. Here's an example:
Pathfinding Once While True
A Sprite object gets scared every time the mouse gets within 50 pixels, running to the house. They return to their original position after 5 seconds.