Fix serial bug