fixed crash from when not connected to the internet.