fix crash caused by network test