Fixed the retrieving of the LocationService.