Fixed bug when setting the uart char size