Fixed bit padding issue when packet is less than 4 bytes.