fix network some bugs