fixed bugs with connection to internet