Fixing selection of a new node after insert