Fix bug with subgraph not working with anonymized names