Fixed conversion of trees so that true copy is made.