Fixed crash caused by no internet connection.