writeExecutePacket: fix packing