Fixed a problem caused by a bad array index that prevented sending
of character over the uart device.