serial comm bug fix