Fix serial buffer corruption.