fix serial UART initialization bug