fix when calling from AirplaneMode.enabled = true problem