Fixed padding issue during transmission