Fixed network on main thread problem