prevent npe - geolocationattributes