bug fix serial