explicitly update a node's index after changing it's elements