fixed location error message displaying even when location services was on.