Fix baud rate and array bug