fixed unconnected roots in the viewer