fix a network error bug