Fixed subtree deletion and subtree duplication.