fixed networking thread bug