fixed crash when location services disabled