Fixed the append methods to update this.root