fixed unpersisted rels and rels that reference the same class