Fix semantics of labels and relationships.