fix thread and main thread network