fix problem with nodes not being deselected