fixed network in main thread issue