fix length of head/tail in Usart class