Fixed serial bug