fixed network offline crashing issue