Fixed geofencing logic