fix serial binary