fix equality in RelatedLink