fixed crashing when no internet available