fixed bug where nodes added as siblings had wrong pointers to other siblings