added restore after internet connection failed