serialization stackoverflow fix

pwn