fix connect and autoconnect serial port