Fix bug when location provider is not available