fix segfault bug
serial port tally