More Optimization!

Fixed crashing after opening the WiFi option under settings.