serial bugfix