Errors when copying into tree