fixed serial bug error