fix the bug when the attribute is a relation, label is lost