Fixed bug with internet conn check