fix network crash