Bug fix to serial parsing.