fix #1281 Xref/Mref control uses attribute names instead of labels