SerialPorts fixes