Fixed serial bugs