Geofence enter Geofence exit

I chose on the app to unlock when entering the geofence, and lock when exiting the geofence.
If I entered the geofence, the app will unlock,
If the app suddenly [no matter for what reason] detected that I’m outside the geofence - it should LOCK but it wouldn’t do that.
Please fix that.