serialization pretty print fix