Fixed bug with CLLocationManager for iOS 8 or later