First deselect all nodes before reselecting