Fixed tree updates on copy or move