Fixed bug on WPA setup