Tree module - reparenting nodes fix