Question about fence failsafe behavior

Hi, I have a question about the behavior of the autopilot when a fence is breached.
In my memories with one of my boats projects the boat always go the the nearest rally point, but when I try now on the simulator, he always go to hold. Fence_Action is on RTL or Hold.

How the software choose what to do exactly? can we easily predict the behavior in order to create good rally points?

Thank you

It will return to a Rally Point if defined. See this note:

  1. If using a geofence: its HIGHLY recommended the Rally Points you intend to use at your event are inside the geofence.

But when I try on the sim he always switch to hold…