Fixed serialization of self-link