com port bug fix