bugfixed serial.go