fixed invalid format for ``struct.pack()``