fix bug where first byte may not be sent