Fix getSource for subgraphs