Correct a bug when there is a multiple of 8 bits to write in the
payload.