fixed bug: if internet connection not available the app won’t crash now