Fixing Geofence Error on Mobile Devices