serial port connection fix