Fixed bug that causes inconsistant behavior for highlighting selected nodes.