Fix hierarchical text export