Fix bug. wifimanager variable was null.