fixed a connection issue with wifi connect