Fixed crash when not connected to internets