Trouble with geofencing

Every so often the geofencing won’t turn off when I come back home. Or wont turn on when i leave. Works for a couple of weeks then stops working for a day or so then works again. Any ideas