Fixed bug in visibility of nodes referenced by model