bugfix around subgraphs