Bug fix

* Several issues with reconnecting nodes in the search tree have been
  solved