diff --git a/datajoint/erd.py b/datajoint/erd.py
index <HASH>..<HASH> 100644
--- a/datajoint/erd.py
+++ b/datajoint/erd.py
@@ -272,7 +272,7 @@ else:
                         '-'*30 if q.startswith('---') else q.replace('->', '&#8594;') if '->' in q else q.split(':')[0]
                         for q in description if not q.startswith('#'))
                     node.set_tooltip('&#13;'.join(description))
-                node.set_label("<<u>"+name+"</u>>" if node.get('distinguished') else name)
+                node.set_label("<<u>"+name+"</u>>" if node.get('distinguished') == 'True' else name)
                 node.set_color(props['color'])
                 node.set_style('filled')
done

nx.drawing.nx_pydot.to_pydot(graph) appears to casting (at least bool) attributes to str.

see line #<I> and #<I>