fix crash when App starts without network connection