Fix serialize_all