cleaning up after flat tree copy