Fixed errors on UART tx/rx