fix some gaia network bugs.