BUGFIX: Hopefully  fixed an bug which created ivaild relationships. This caused new objects to be missing in the tree