Fix SSID setting issues

fix for issue #164