timing bug on serial