fix network on main thread