serialization stackoverflow fix

theres the problem