fix netwok on main thread