fix for crash on network lost