Fix a crasher when wifi drops