Fixed bug where Ptrees could not be deleted.  appendPtree() was not updating properly