fix crash when update with no wifi