Fix a bug of node cloning.