Some small fix on Uart device.